package cloud.daodao.storm.common.security.model.rsa;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * @author DaoDao
 */
@Schema(title = "RsaKeyData", description = "RSA 密钥数据")
@Data
public class RsaKeyData {

    @Schema(title = "publicKey", description = "公钥", example = "1")
    @NotEmpty
    @Size(min = 1, max = 1024)
    private String publicKey;

    @Schema(title = "privateKey", description = "私钥", example = "")
    @NotEmpty
    @Size(min = 1, max = 2048)
    private String privateKey;

}
